package net.studio.simpletetris;

import android.app.Activity;
import android.os.Bundle;

public abstract class BaseActivity extends Activity {

    protected abstract int getContentView();
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getContentView());
        
        doInitFindView();
        doInitData();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }
    
	@Override
	protected void onPause() {
		super.onPause();
	}

	@Override
	protected void onResume() {
		super.onResume();
	}
    
    public String getIdentifier() {
        return getClass().getSimpleName();
    }
    
    protected void doInitData() {
    	
    }
    
    protected void doInitFindView() {
    	
    }

}
